﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Script.Serialization;
using System.Xml.Serialization;
using Vit.Common;
using Vit.Web.Providers;

namespace Vit.Web.Models
{
    public class DataSourceCategory
    {
        public DataSourceCategory()
        {
            IsValid = true;
        }

        [StringLength(50)]
        [Key]
        public string CategoryName { get; set; }

        public bool IsValid { get; set; }

        [ScriptIgnore]
        [XmlIgnore]
        public virtual ICollection<DataSourceItem> Items { get; set; }
    }
}
